<script setup>
import {onMounted} from 'vue';
import store from '../store';
import {useRouter} from 'vue-router' ;

const router = useRouter();
onMounted(()=> {
   store.commit("resetUserAndToken") ;
   // 跳转到登陆页面
  router.push("/login?logout") ;
}) ;

</script>

<template>

</template>

<style scoped>

</style>